#ifndef DOCWIDGET_H
#define DOCWIDGET_H

#include <QObject>
#include <QDockWidget>
#include <QMainWindow>
#include <QBoxLayout>
#include <QTableWidget>
#include <QHeaderView>
#include "CoreSPCN.h"

	QT_FORWARD_DECLARE_CLASS(QAction)
	QT_FORWARD_DECLARE_CLASS(QActionGroup)
	QT_FORWARD_DECLARE_CLASS(QMenu)

class DockWidget : public QDockWidget
{
	Q_OBJECT

public:
	DockWidget(const QString &Name, QWidget *parent = 0, Qt::WindowFlags flags = 0);
	QWidget *widg;
	QBoxLayout *layout;

	QSize sizeHeight(int h)
	{
		QSize sh = QDockWidget::sizeHint();
		sh.setHeight(h);
		return sh;
	}

	QSize sizeWidth(int w)
	{
		QSize sw = QDockWidget::sizeHint();
		sw.setWidth(w);
		return sw;
	}

	QSize sizeHint() const
	{
		QSize sh = QDockWidget::sizeHint();
		sh.setHeight(40);
		return sh;
	}

public slots:
	void setupDocWidget();
	//QSize sizeHeight(int h);
	//QSize sizeWidth(int w);
};

#endif // DOCWIDGET_H
